package com.dk.feign.impl;

import com.dk.data.Result;
import com.dk.dto.DtItemDTO;
import com.dk.feign.GoodFeign;

import org.slf4j.Logger;
import org.slf4j.LoggerFactory;
import org.springframework.stereotype.Component;

@Component
public class GoodFeignImpl implements GoodFeign {
    private Logger logger = LoggerFactory.getLogger(GoodFeignImpl.class);
    @Override
    public Result<DtItemDTO> getWord(Integer pageNumber, Integer pageSize, String word) {
        logger.error("调用服务熔断了, 参数为：{} ，{} ",pageSize,pageNumber);
        return Result.FALLEOVER();
    }
}
